package com.jin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jin.dto.OrderDTO;
import com.jin.entity.OrderMaster;
import com.jin.form.OrderForm;

import java.util.List;

/**
 * @author JJLiu
 * @create 2021-07-17 10:01
 **/
public interface OrderService {

    //创建订单
    OrderForm create(OrderForm orderForm);

    //查询单个订单
    OrderDTO findOne(String orderId);

    //查询订单列表
    List<OrderDTO> findList(String buyerOpenid, Page<OrderMaster> page);

    //取消订单
    OrderDTO cancel(OrderDTO orderDTO);

    //完结订单
    OrderDTO finish(OrderDTO orderDTO);

    //支付订单
    OrderDTO paid(OrderDTO orderDTO);

}
